package com.example.mvvm_base.event;

public class CustomEvent {
    private String target;//页面
    private Object data;//数据类型
    private int type;//业务类型

    public CustomEvent(String target, Object data, int type) {
        this.target = target;
        this.data = data;
        this.type = type;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CustomEvent{" +
                "target='" + target + '\'' +
                ", data=" + data +
                ", type=" + type +
                '}';
    }
}
